<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

if (!$user->isAdmin())
	goToPage();

switch($route->getAdminPlace())
{
	case "statistics": require_once ADMIN.DS."_statistics".DS.MAIN; break;
	case "content": require_once ADMIN.DS."_content".DS.MAIN; break;
	case "rumors": require_once ADMIN.DS."_rumors".DS.MAIN; break;
	case "users": require_once ADMIN.DS."_users".DS.MAIN; break;
	case "moder": require_once ADMIN.DS."_moder".DS.MAIN; break;
	case "messages": require_once ADMIN.DS."_messages".DS.MAIN; break;
	case "polls": require_once ADMIN.DS."_polls".DS.MAIN; break;
	case "report": require_once ADMIN.DS."_alex_report".DS.MAIN; break;
	case "candidates": require_once ADMIN.DS."_candidates".DS.MAIN; break;
	
	default: goToPage("/admin/statistics");
}

?>